<?php
namespace Settings\Form;

use Zend\Form\Form;

class SettingsForm extends Form{
    public function __construct($name = null, $options = array()) {
        parent::__construct($name, $options);
        $this->setAttribute('method', 'post');
        $this->setAttribute('enctype', 'multipart/form-data');
        
        $this->add(array(
            'name' => 'sitename',
            'type' => 'Text',
            'options' => array(
                'titles' => 'Company name',
            )
        ));
        
        $this->add(array(
            'name' => 'logoupload',
            'attributes' => array(
                'type' => 'File',
            ),
            'options' => array(
                'label' => 'Logo Upload',
            ),
        ));
        
        $this->add(array( 
            'name' => 'submit',
            'attributes' => array(
                'type' => 'submit',
                'value' => 'Upload Logo',
            ),
        ));
    }
}